package com.comleader.operator.service.strategy;

import com.alibaba.excel.metadata.Head;
import com.alibaba.excel.write.style.column.AbstractHeadColumnWidthStyleStrategy;

/**
 * @Dscription 检查统计表自定义列宽
 * @Author 连新景
 * @Date 2024/09/02 15:03
 */
public class InspectStatColumnWidthStyleStrategy extends AbstractHeadColumnWidthStyleStrategy {
    @Override
    protected Integer columnWidth(Head head, Integer columnIndex) {
        switch (columnIndex) {
            case 0:
                return 50;
            case 1:
                return 10;
        }
        return 20;
    }
}
